using Newtonsoft.Json.Linq;
using System.Collections.Generic;

namespace LiJ.Framework.Official.Basic.Mos
{
	/// <summary>
	///    素材列表Item
	/// </summary>
	public class MediaListItem
	{
		/// <summary>
		///   素材Id
		/// </summary>
		public string media_id
		{
			get;
			set;
		}

		/// <summary>   
		///   这篇图文消息素材的最后更新时间
		/// </summary>  
		public long update_time
		{
			get;
			set;
		}

		/// <summary>   
		///   文件名称
		/// </summary>  
		public string name
		{
			get;
			set;
		}

		/// <summary>
		///   地址
		/// </summary>
		public string url
		{
			get;
			set;
		}

		/// <summary>
		/// 图文内容
		/// </summary>
		public object content
		{
			set
			{
				this.news_lsit = ((value != null) ? ((JToken)value)["news_item"].ToObject<List<WxArticleInfo>>() : new List<WxArticleInfo>());
			}
		}

		/// <summary>
		///  图文列表
		/// </summary>
		public List<WxArticleInfo> news_lsit
		{
			get;
			private set;
		}
	}
}
